package com.damei.qmui_test_demo.activity.assets;

import android.graphics.Color;
import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.damei.qmui_test_demo.R;
import com.damei.qmui_test_demo.base.BaseActivity;
import com.damei.qmui_test_demo.view.AssetsListAdapter;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class AssetsListActivity extends BaseActivity {

    @BindView(R.id.recycler_list)
    RecyclerView recyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_assets_list);
        ButterKnife.bind(this);

        setNavigationAction("资产详情", R.color.colorNavigation, null);

        List<String> list = new ArrayList<String>();
        for (int i=0; i<10; i++) {
            list.add("第"+String.valueOf(i)+"个Item");
        }
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        recyclerView.setAdapter(new AssetsListAdapter(this, list));
    }
}
